﻿@model IList<UserAddress>
<div></div>
<div class="container-12  clearfix">
    <div class="grid-2">
        @MyHelper.GetSideNavHtml()
    </div>
    <div class="grid-10">
    <div class="sk-ui-box">
        <div class="header">
            <div class="title">
                收货 & 帐单地址
            </div>
            <div class="extra">
                <ul class="clearfix">
                    <li></li>
                   </ul>
            </div>
        </div>
        <div class="container">
            <div>
                <table class="sk-ui-table-default">
                    <thead>
                        <tr>
                            <th class="addr-consignee">
                                收货人
                            </th>
                            <th class="addr-detail">
                                详细地址
                            </th>
                            <th class="addr-phone">
                                联系电话
                            </th>
                            <th class="addr-operate">
                                操作
                            </th>
                        </tr>
                    </thead>
                    @if (Model.Count > 0)
                    {
                        <tbody>
                            @Model.Each(@<tr class="@item.Css">
                                <td>@item.Item.Receiver
                                </td>
                                <td>@item.Item.Address
                                </td>
                                <td>@(item.Item.Mobile)
                                    @(item.Item.Phone)
                                </td>
                                <td><a class="fancybox fancybox.ajax"  href="/address/address/@(item.Item.Id)" >编 辑</a>
                                <span class="ml-20"><a href="/address/delete/@item.Item.Id" data-ajax-success="alert(0);" data-ajax="true" data-ajax-method="post">删 除</a></span>
                                </td>
                            </tr>
                        )
                        </tbody>}
                    else
                    {
                        <tbody>
                            <tr>
                                <td colspan="4" class="empty">
                                    <span class="field-validation-error">您还未保存收货地址</span> @*<a href="/address@2/450/500/0" class="thickbox" title="添加地址">添加</a>*@
                                    <a href="/address@@450/500/0" class="dialog-ajax" title="添加地址" data-callback="ajaxFormCallbacks">
                                        添加</a>
                                </td>
                            </tr>
                        </tbody>}
                </table>
            </div>
        </div>
    </div>
</div>
</div>
@section js
{
    <script type="text/javascript">
    </script>
}
